(Leadtools.Annotations.Core)

CollectionChanged Event (AnnObservableCollection<T>)

Show in webframe





Occurs when the collection changes.
Syntax
public event EventHandler<AnnNotifyCollectionChangedEventArgs> CollectionChanged
Public Event CollectionChanged As EventHandler(Of AnnNotifyCollectionChangedEventArgs)
public event EventHandler<AnnNotifyCollectionChangedEventArgs> CollectionChanged

            
public void addCollectionChangedListener(AnnNotifyCollectionChangedListener listener)
public void removeCollectionChangedListener(AnnNotifyCollectionChangedListener listener)
            
add_CollectionChanged(function(sender, e))
remove_CollectionChanged(function(sender, e))

Event Data

The event handler receives an argument of type AnnNotifyCollectionChangedEventArgs containing data related to this event. The following AnnNotifyCollectionChangedEventArgs properties provide information specific to this event.

PropertyDescription
Action Gets the action that caused the event.
NewItems Gets the list of new items involved in the change.
NewStartingIndex Gets the index at which the change occurred.
OldItems Gets the list of items affected by a Replace, Remove, or Move action.
OldStartingIndex Gets the index at which a Move, Remove, or Replace action occurred.
Requirements

Target Platforms

See Also

Reference

AnnObservableCollection<T> Class
AnnObservableCollection<T> Members

 

 


Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.